home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / portray / exam_006.sce < prev    next >
Encoding:
Text File  |  1993-12-29  |  3.6 KB  |  128 lines

  1.  
  2. camera
  3.    look-at (0.0 1.0 0.0)
  4.    drop-line (0 -1 0)
  5.    origin (-5 5 -8)
  6.    depth 0.56
  7.    x-size 0.64
  8.    y-size 0.48
  9.    filter standard
  10. ;
  11.  
  12. image
  13.    xsize 640
  14.    ysize 480
  15. ;
  16.  
  17. object
  18.    primative plane
  19.       position (-1000 0 -1000)
  20.       normal (0 1 0)
  21.       x-axis (1 0 0)
  22.       y-axis (0 0 1)
  23.    ;
  24.    material
  25.       colour (.3 .3 .3)
  26.    ;
  27. ;
  28.  
  29. define
  30.    material
  31.       named die-pips
  32.       colour (0 0 0)
  33.       spec-colour (1 1 1)
  34.       diffuse-reflection 0.0
  35.       specular-reflection 0.8
  36.       reflection 0.0
  37.    ;
  38.    object
  39.       name pips
  40.       object sphere centre (0 0 -1.2) radius 0.25 ; material called die-pips ; ;
  41.  
  42.       object sphere centre (0.4 -0.4 1.2) radius 0.25 ; material called die-pips ; ;
  43.       object sphere centre (0.4  0.0 1.2) radius 0.25 ; material called die-pips ; ;
  44.       object sphere centre (0.4  0.4 1.2) radius 0.25 ; material called die-pips ; ;
  45.       object sphere centre (-.4 -0.4 1.2) radius 0.25 ; material called die-pips ; ;
  46.       object sphere centre (-.4  0.0 1.2) radius 0.25 ; material called die-pips ; ;
  47.       object sphere centre (-.4  0.4 1.2) radius 0.25 ; material called die-pips ; ;
  48.  
  49.       object sphere centre (1.2 -0.4  0.4) radius 0.25 ; material called die-pips ; ;
  50.       object sphere centre (1.2  0.4 -0.4) radius 0.25 ; material called die-pips ; ;
  51.  
  52.       object sphere centre (-1.2 -0.4  0.4 ) radius 0.25 ; material called die-pips ; ;
  53.       object sphere centre (-1.2  0.0  0.0 ) radius 0.25 ; material called die-pips ; ;
  54.       object sphere centre (-1.2  0.4  0.4 ) radius 0.25 ; material called die-pips ; ;
  55.       object sphere centre (-1.2 -0.4 -0.4 ) radius 0.25 ; material called die-pips ; ;
  56.       object sphere centre (-1.2  0.4 -0.4 ) radius 0.25 ; material called die-pips ; ;
  57.  
  58.       object sphere centre (-0.4 -1.2  0.4 ) radius 0.25 ; material called die-pips ; ;
  59.       object sphere centre ( 0.4 -1.2  0.4 ) radius 0.25 ; material called die-pips ; ;
  60.       object sphere centre (-0.4 -1.2 -0.4 ) radius 0.25 ; material called die-pips ; ;
  61.       object sphere centre ( 0.4 -1.2 -0.4 ) radius 0.25 ; material called die-pips ; ;
  62.  
  63.       object sphere centre (-0.4 1.2  0.4 ) radius 0.25 ; material called die-pips ; ;
  64.       object sphere centre ( 0.0 1.2  0.0 ) radius 0.25 ; material called die-pips ; ;
  65.       object sphere centre ( 0.4 1.2 -0.4 ) radius 0.25 ; material called die-pips ; ;
  66.    ;
  67.    object
  68.       name die
  69.       object
  70.          csg
  71.             subtract
  72.             operand1
  73.                csg
  74.                   intersect
  75.                   operand1
  76.                      sphere
  77.                         centre (0 0 0)
  78.                         radius 1.414
  79.                      ;
  80.                      material
  81.                         named die-stuff
  82.                         colour (0.8 0.8 0.8)
  83.                         diffuse-reflection 0.1
  84.                         specular-reflection 0.3
  85.                         specular-power 100
  86.                         reflection 0.4
  87.                      ;
  88.                   ;
  89.                   operand2
  90.                      box
  91.                         a (-1 -1 -1)
  92.                         b ( 1 1  1)
  93.                      ;
  94.                      material
  95.                         called die-stuff
  96.                      ;
  97.                   ;
  98.                ;
  99.             ;
  100.             operand2
  101.                pips
  102.                   at (0 0 0)
  103.                ;
  104.             ;
  105.          ;
  106.       ;
  107.    ;
  108. ;
  109.  
  110. object
  111.    die
  112.       at (3 1 0)
  113.    ;
  114. ;
  115.  
  116. object
  117.    die
  118.       at (-3 1 0)
  119.       x-rotate 180
  120.    ;
  121. ;
  122.  
  123.  
  124. light
  125.    colour (1 1 1)
  126.    position (-300 1000 -400)
  127. ;
  128.